import { createRequest } from "@/utils";

const request = createRequest({
	baseUrl: import.meta.env.VITE_RDS_URL,
});

/**
 * 获取所有地图
 */
export const getMapList = async () => {
	return request.get("/map/list");
};

/**
 * 获取地图详情
 */
export const getMap = async (options: { id: string }) => {
	return request.get("/map", options);
};
